package com.jl.jlapp.utils;

import android.os.CountDownTimer;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.widget.TextView;

public class CountDownTimerUtils
  extends CountDownTimer
{
  private TextView mTextView;
  
  public CountDownTimerUtils(TextView paramTextView, long paramLong1, long paramLong2)
  {
    super(paramLong1, paramLong2);
    this.mTextView = paramTextView;
  }
  
  public void onFinish()
  {
    this.mTextView.setText("重新获取动态密码");
    this.mTextView.setClickable(true);
  }
  
  public void onTick(long paramLong)
  {
    this.mTextView.setClickable(false);
    this.mTextView.setText(paramLong / 1000L + "秒后可重新发送");
    SpannableString localSpannableString = new SpannableString(this.mTextView.getText().toString());
    localSpannableString.setSpan(new ForegroundColorSpan(-65536), 0, 2, 17);
    this.mTextView.setText(localSpannableString);
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/utils/CountDownTimerUtils.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */